import 'package:flutter/material.dart';
import 'package:flutter_easyloading/flutter_easyloading.dart';

import 'util/CustomAnimation.dart';
import 'views/fragments/map_fragment.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);


  @override
  Widget build(BuildContext context) {
      return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const MapFragment(),
      builder: EasyLoading.init(),
      // (context, child) {
      //   EasyLoading.init();
      //   // EasyLoading.instance
      //   //   ..displayDuration = const Duration(milliseconds: 2000)
      //   //   ..indicatorType = EasyLoadingIndicatorType.fadingCircle
      //   //   ..loadingStyle = EasyLoadingStyle.dark
      //   //   ..indicatorSize = 45.0
      //   //   ..radius = 10.0
      //   //   ..progressColor = Colors.yellow
      //   //   ..backgroundColor = Colors.green
      //   //   ..indicatorColor = Colors.yellow
      //   //   ..textColor = Colors.yellow
      //   //   ..maskColor = Colors.blue.withOpacity(0.5)
      //   //   ..userInteractions = true
      //   //   ..dismissOnTap = false
      //   //   ..customAnimation = CustomAnimation();
      //   return child!;
      //   },
    );
  }
}
